package com.xnck.example.sbtest.controller;

import com.xnck.example.sbtest.enums.ResponseCode;
import com.xnck.example.sbtest.model.ResponseJson;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestController {

    @RequestMapping("json")
    public ResponseJson getTestJson() {
        System.out.println("/test/json");
        return new ResponseJson(ResponseCode.SUCCESS.getCode(), "this is test", null);
    }
}
